home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Commands / Protocols / Closing.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  385 b   |  23 lines  |  [TEXT/CWIE]

  1. // Closing.h
  2.  
  3. #ifndef Closing_h
  4. #define Closing_h
  5.  
  6. #ifndef ContextUser_h
  7. #include "ContextUser.h"
  8. #endif
  9. #ifndef SavingOption_h
  10. #include "SavingOption.h"
  11. #endif
  12.  
  13. class Closing: public ContextUser
  14.   {
  15.     public:
  16.         void CloseAskingToSave()        { Close( SavingOption::ask ); }
  17.         
  18.         virtual bool CanClose() const;
  19.         virtual void Close( SavingOption save = SavingOption::ask ) = 0;
  20.   };
  21.  
  22. #endif
  23.